package com.marvels.system.common.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.marvels.system.common.api.SystemParamsApi;
import com.marvels.system.permission.dto.McsmSystemParam;

@RestController
@RequestMapping("/system/api")
public class SystemProvideController {
	
	@Autowired
	private SystemParamsApi systemParamsApi;
	 
	@RequestMapping("/paramList")
	@ResponseBody
	public List<McsmSystemParam> paramList(@RequestBody McsmSystemParam mcsmSystemParam){
		List<McsmSystemParam> list=systemParamsApi.paramList(mcsmSystemParam.getParamNames());
		return list;
	}
	
}
